/*
 * timer.h
 *
 *  Created on: Mar 10, 2012
 *      Author: Christian
 */

#ifndef TIMER_H_
#define TIMER_H_

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

#define SLEEP_TIMER 100000

//bool timer_interrupt = false;

typedef struct timer_struct {
	int timer_limit;
	bool timer_interrupt;
} timer;

timer* timer_init();
void* timer_start(void* timer_ptr);
void pause();

#endif /* TIMER_H_ */
